var mongoose = require('mongoose');
var settings = require('../settings.js');
mongoose.connect('mongodb://'+settings.host+'/'+settings.db);

exports.User = mongoose.model('User',require('./user'));
exports.Message = mongoose.model('Message',require('./message'));
exports.Room = mongoose.model('Room',require('./room'));